package create.factory.abstractClass;

import create.factory.simpleFactory.HuaWeiIComputer;
import create.factory.simpleFactory.IComputer;

/**
 * @author dali
 * @date 2021-07-09 14:01
 * @Description 华为工厂
 */

public class HuaWeiFactory implements Factory{
    @Override
    public IComputer getComputer() {
        //生产华为电脑
        return new HuaWeiIComputer();
    }

    @Override
    public IPhone getPhone() {
        //生产华为手机
        return new HuaWeiPhone();
    }
}
